package com.huangwei.service.impl;

import com.huangwei.dao.CarTypeDao;
import com.huangwei.model.CarType;
import com.huangwei.service.CarTypeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CarTypeServiceImpl implements CarTypeService {
    @Resource
    CarTypeDao carTypeDao;
    @Override
    public List<CarType> getAllCarTypes() {
        try {
            return carTypeDao.queryAll();
        } catch (Exception e) {
            e.printStackTrace();
        }
        return null;
    }
}
